package com.liao.work.util;

import androidx.appcompat.app.ActionBar;

public class SetActionBarTitle {

    public static void setTitle(ActionBar actionBar, boolean isHide, String title) {
        if (actionBar != null) {
            if (isHide) {
                actionBar.hide();
            } else {
                actionBar.setTitle(title);
            }
        }
    }
}
